package yijy;

import org.apache.http.HttpResponse;
import util.HttpUtils;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by yijy on 2017/6/8.
 */
public class test2 {

    public static void main(String[] args) {
        String host = "http://dm-51.data.aliyun.com";
        String path = "/rest/160601/ocr/ocr_idcard.json";
        String method = "POST";
        String appcode = "00846bdc925c4492abdf5c0f0b4b6d68";
        Map<String, String> headers = new HashMap<String, String>();
        //最后在header中的格式(中间是英文空格)为Authorization:APPCODE 83359fd73fe94948385f570e3c139105
        headers.put("Authorization", "APPCODE " + appcode);
        //根据API的要求，定义相对应的Content-Type
        headers.put("Content-Type", "application/json; charset=UTF-8");
        Map<String, String> querys = new HashMap<String, String>();
        StringBuffer bodys = new StringBuffer("{\\\"inputs\\\": [" );
        bodys.append("{ \\\"image\\\": {  \\\"dataType\\\": 50, ");
        bodys.append(" \\\"dataValue\\\": \\\"/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wgARCADTAUMDASIAAhEBAxEB/8QAGwAAAgMBAQEAAAAAAAAAAAAAAQIAAwQFBgf/xAAYAQEBAQEBAAAAAAAAAAAAAAAAAQIDBP/aAAwDAQACEAMQAAAB7hk50NGACtOssVYHVohtZ1aUOrBdWSOCSxLEcPERbVtqWyKqECBxJXGrsAaSBlaFMAJJGZuX09QNQqa63rmlu4XSrW2C5rS3E6NutlshXDEcEDh6DLYXMr3AS1StLq5a6ra2q1ZUWxYihlkkMCCgZJlguM1KDaGWKwSxrGs91kb5ujVBmSK7KykMaDpckMdGcNcSSASxVzrdVNUVjFG8cgR2U5+y5urthXGIkaScnVyOhvFhzVJuj55qzT53tLtV650L4xW2TCvQarIdBs2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Alqfb/AHgYRF3gLUNky2id9YDre+1uZrot9rzi0XzDEFD2VziNiUx6XyaLMhqgrrywlPz3iiIWQ+XxgqcTovMyETo8cZQR4O6bwM0Ib63/AMYjkojfzhANERcGCapWx6wAdHbrAc29X3nIJ4D3lixpB3jIqbbxPjEQgdCb9dOQjSmyWDHhAQOe/vG6MDBx4a53OEnjz9a47xt6W6HqA5vKCtrVd8+c3iyjtOfXjWaaBRT9wcD94Dm8Sw4NdZNjvZbcUmIAhzujgPXWDe/eLT9l4wtI3IOaZBHk1kmx6P3mwdYS/DNm7u2Npu/OVD5DeEtnl95BsHHjN5yuQJ8Ez3MoRXy43P5xZ0LP4wlBZgGhcEE19PeFibXAGBqMBUUVT44wgFBpcfOY3D084mh3rFQ3QHhwBvvCzrIDIcNYsPTWsaQYb1hOvlLnjWVIOjcTN+E9M7oeb94QTTFXjEhC6zX6HrHa2cvcJYTBZX7Yml4LgkWwK4AEDP/Z\\\" ");
        bodys.append(" },\\\"configure\\\": { \\\"dataType\\\": 50, ");
        bodys.append(" \\\"dataValue\\\": \\\"{\\\\\\\"side\\\\\\\":\\\\\\\"face\\\\\\\"}\\\"} ");
        bodys.append(" }]}\"; ");
        try {
            /**
             * 重要提示如下:
             * HttpUtils请从
             * https://github.com/aliyun/api-gateway-demo-sign-java/blob/master/src/main/java/com/aliyun/api/gateway/demo/util/HttpUtils.java
             * 下载
             *
             * 相应的依赖请参照
             * https://github.com/aliyun/api-gateway-demo-sign-java/blob/master/pom.xml
             */
            HttpResponse response = HttpUtils.doPost(host, path, method, headers, querys, bodys.toString());
            System.out.println(response.toString());
            //获取response的body
            //System.out.println(EntityUtils.toString(response.getEntity()));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
